<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.

Yii::setPathOfAlias('Wildkat', realpath(dirname(__FILE__) . '/../extensions/Wildkat'));

return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'My Console Application',
	// application components
	'components'=>array(
		'db'=>array(
			'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
		),
		'doctrine' => array(
		    'class' => 'Wildkat\YiiExt\DoctrineOrm\DoctrineContainer',
		    'dbal' => array(
		        'default' => array(
		            'driver' => 'pdo_mysql',
		            'host' => 'localhost',
		            'dbname' => 'test',
		            'user' => 'test',
		            'password' => 'test',
		        ),
		    ),
		    'cache' => array(
		        'default' => array(
		            'driver' => 'ArrayCache',
		            'namespace' => '__app',
		        ),
		    ),
		    'entityManager' => array(
		        'default' => array(
		            'connection' => 'default',
		            'metadataCache' => 'default',
		            'queryCache' => 'default',
		            'entityPath' => 'application.models',
		            'mappingDriver' => 'YamlDriver',
		            'mappingPaths' => array(
		                'ext.Wildkat.YiiExt.DoctrineOrm.mapping'
		            ),
		            'proxyDir' => 'application.data',
		            'proxyNamespace' => 'Proxy',
		        ),
		    ),
		),
	),
);